package com.free.system.domain;

import com.free.common.annotation.Excel;
import com.free.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 票券对象 free_ticket
 *
 * @author Sophia
 * @date 2025-02-27
 */
public class FreeTicket extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 票券名称
     */
    @Excel(name = "票券名称")
    private String ticketName;

    /**
     * 获取时间（小时）
     */
    @Excel(name = "获取时间", readConverterExp = "小=时")
    private Long takeHour;

    /**
     * 获取时间（分钟）
     */
    @Excel(name = "获取时间", readConverterExp = "分=钟")
    private Long takeMinute;

    /**
     * 提前触发时间（分钟）
     */
    @Excel(name = "提前触发时间", readConverterExp = "分=钟")
    private Long beforeMinuteClick;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setTicketName(String ticketName) {
        this.ticketName = ticketName;
    }

    public String getTicketName() {
        return ticketName;
    }

    public void setTakeHour(Long takeHour) {
        this.takeHour = takeHour;
    }

    public Long getTakeHour() {
        return takeHour;
    }

    public void setTakeMinute(Long takeMinute) {
        this.takeMinute = takeMinute;
    }

    public Long getTakeMinute() {
        return takeMinute;
    }

    public void setBeforeMinuteClick(Long beforeMinuteClick) {
        this.beforeMinuteClick = beforeMinuteClick;
    }

    public Long getBeforeMinuteClick() {
        return beforeMinuteClick;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("ticketName", getTicketName())
                .append("takeHour", getTakeHour())
                .append("takeMinute", getTakeMinute())
                .append("beforeMinuteClick", getBeforeMinuteClick())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
